$def with (privData)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
$:privData['render'].header(privData)
<body>
$:privData['render'].pageheader(privData)

<h2>产品列表</h2>

<table width="800" border="0" cellspacing="0" cellpadding="1" class="list">
    <tr>
        <th>ID</th>
        <th>图片</th>
        <th>名称</th>
        <th>分类</th>
        <th>价格</th>
        <th>折扣</th>
        <th>公司</th>
        <th>地区</th>
        <th>管理</th>
    </tr>
    $for i in privData['PRODUCT_LIST']:
    <tr>
        <td align="center">$i['id']</td>
        <td align="center">
            <a href="$imageUrl(i['picture'])">
                <img src="$makeUrl('/user/image/thumbnail',{'id':i['picture']})"/>
            </a>
        </td>
        <td align="center">$i['name']</td>
        <td align="center">$:privData['CATEGORY_LIST'][i['category']]</td>
        <td align="center">$:i['price']</td>
        <td align="center">$:i['discount']</td>
        <td align="center">$:i['company']</td>
        <td align="center">$:i['region']</td>
        <td align="center">
            <a href="$makeUrl('/user/product/edit',{'id':i['id']})" >编辑</a> |
            <a href="$makeUrl('/user/product/delete',{'id':i['id']})" onclick="return confirm('确认删除？')">删除</a>
        </td>
    </tr>
</table>

<nav class="navigation">
    $:privData['PAGE_STRING']
</nav>


<div style="clear: both;"></div>
</div>
</body></html>
